package com.brok1n.app.android.selfstudyartifact.view;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.brok1n.app.android.selfstudyartifact.R;
import com.bumptech.glide.Glide;

public class MainActivity extends AppCompatActivity {



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Example of a call to a native method
        TextView tv = (TextView) findViewById(R.id.sample_text);


        ImageView img = new ImageView( this );
        img.setLayoutParams( new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));

        setContentView( img );

        Glide.with(this).load("http://image.tianjimedia.com/uploadImages/2015/121/35/YI13UX4529TF.jpg").into( img );


    }


}
